home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / UNIXLIB37B / !UnixLib37 / src / clib / sys / h / uio < prev    next >
Text File  |  1996-11-09  |  1KB  |  51 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /unixb/home/unixlib/source/unixlib37/src/clib/sys/h/RCS/uio,v $
  4.  * $Date: 1996/10/30 22:04:51 $
  5.  * $Revision: 1.1 $
  6.  * $State: Rel $
  7.  * $Author: unixlib $
  8.  *
  9.  * $Log: uio,v $
  10.  * Revision 1.1  1996/10/30 22:04:51  unixlib
  11.  * Initial revision
  12.  *
  13.  ***************************************************************************/
  14.  
  15. #ifndef __SYS_UIO_H
  16. #define __SYS_UIO_H 1
  17.  
  18. #ifndef __STDDEF_H
  19. #include <stddef.h>
  20. #endif
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26. /* Structure describing a section of memory.  */
  27.  
  28. struct iovec
  29. {
  30.   /* Starting address.  */
  31.   void *iov_base;
  32.   /* Length in bytes.  */
  33.   size_t iov_len;
  34. };
  35.  
  36. /* Read data from file descriptor FD, and put the result in the
  37.    buffers described by VECTOR, which is a vector of COUNT `struct iovec's.
  38.    The buffers are filled in the order specified.  */
  39. int readv (int __fd, const struct iovec * __vector, size_t __count);
  40.  
  41. /* Write data pointed by the buffers described by VECTOR, which
  42.    is a vector of COUNT `struct iovec's, to file descriptor FD.
  43.    The data is written in the order specified. */
  44. int writev (int __fd, const struct iovec * __vector, size_t __count);
  45.  
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49.  
  50. #endif
  51.